package com.example.monitor.repository;

import com.example.monitor.model.DO.Camera;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;

public interface CameraRepository extends JpaRepository<Camera, Long> {

    // 获取所有摄像头，按ID排序
    List<Camera> findAllByOrderByCameraIdAsc();

    // 按状态查询
    List<Camera> findByStatus(String status);
}